package com.xiaofeng.pochi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xiaofeng.pochi.pojo.SysRole;
import com.xiaofeng.pochi.pojo.SysRoleMenu;

import java.util.List;

/**
 * Created with IntelliJ IDEA
 *
 * @Author: chc
 * @Date: 2022/08/01/22:35
 * @Description:
 */
public interface SysRoleMenuMapper extends BaseMapper<SysRoleMenu> {
    /**
     * 批量插入
     *
     * @param roleMenuList
     */
    void saveBatch(List<SysRoleMenu> roleMenuList);

    /**
     * 根据角色ID删除
     * @param roleId
     */
    void deleteByRoleId(Long roleId);

    /**
     * 根据角色ID查询
     * @param id
     * @return
     */
    List<SysRoleMenu> getByRoleId(Long id);
}
